<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="/Admin/tpl/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="/Admin/tpl/Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="/Admin/tpl/Css/style.css" />
    <script type="text/javascript" src="/Admin/tpl/Js/jquery.js"></script>
    <script type="text/javascript" src="/Admin/tpl/Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="/Admin/tpl/Js/bootstrap.js"></script>
    <script type="text/javascript" src="/Admin/tpl/Js/ckform.js"></script>
    <script type="text/javascript" src="/Admin/tpl/Js/common.js"></script>

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
</head>
<body>
<form class="form-inline definewidth m20" action="index.html" method="get">  
  <button type="button" class="btn btn-success" id="addnew">新增监理工程</button>
</form>
<table class="table table-bordered table-hover definewidth m10" >
    <thead>
    <tr>
        <th>监理工程id</th>
        <th>客户姓名</th>
        <th>合同编号</th>
		<th>地址</th>
		<th>设计公司</th>
		<th>设计师</th>
        <th>施工监理</th>
		<th>操作</th>
    </tr>
    </thead>
	     
			<Volist name='shigong' id='vo'>
			<tr>
            <td>{$vo.shigong_id}</td>
            <td>{$vo.kehu_name}</td>
			<td>{$vo.hetongbianhao}</td>
			<td>{$vo.address}</td>
			<td>{$vo.shejigongsi}</td>
            <td>{$vo.shejishi}</td>
			<td>{$vo.shigongjianli}</td>
            <td>
                  <a href="{:U('Sgcontent/add',array('id'=>$vo[shigong_id]))}">添加装修进度</a>
				   <a href="{:U('Sgcontent/index',array('id'=>$vo[shigong_id]))}">装修进度管理</a>&nbsp;|
				  <a href="{:U('Shigong/edit',array('id'=>$vo[shigong_id]))}">编辑</a>
				  <a href="{:U('Shigong/del',array('id'=>$vo[shigong_id]))}" onClick='javascript:return confirm("确定要删除吗？");'>删除</a>
                  
            </td>
			</tr>
			</Volist>
        </table>
		</body>
		</html>

<script>
    $(function () {
        
		$('#addnew').click(function(){

				window.location.href="{:U('Shigong/add')}";
		 });


    });

	function del(id)
	{
		if(confirm("确定要删除吗？"))
		{
			var url = "index.html";
			window.location.href=url;	
		}
	}
</script>